package cn.qayy.dao;

import java.util.List;
import java.util.Map;

import cn.qayy.po.Basis;
import cn.qayy.po.Plan;
import cn.qayy.po.Policy;
import cn.qayy.service.Uploadable;

public interface PolicyMapper {

    List<Map<String, Object>> selectPolicyBy(Map<String, Object> params);
    
    List<Map<String, Object>> selectRePolicyBy(Map<String, Object> params);

    int deleteByPrimaryKey(Integer id);

    int insert(Policy record);

    int insertSelective(Object record);

    Policy selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Object record);

    int updateByPrimaryKey(Policy record);

    int updateByList(List<?> planlist);

    int insertByList(List<?> planlist);
    
    List<Policy> selectByIds(List<String> list);

	List<? extends String> selectPolicyKeys();

	int deleteByList(List list);

	int delete(Object bean);

	List<Policy> selectPolicys(Map<String, Object> params);

	List<Map<String, Object>> selectClientBankBy(Map<String, Object> params);

	List<Policy> selectByMap(Map<String, Object> params);
	
	List<Map<String, Object>> selectPolicyDemoWCLByMap(Map<String, Object> params);

	List<Integer> selectIdsByMap(Map<String, Object> params);
	
	int checkRe(Policy p);
	
	List<Policy> selectBeforeByIds(List<Policy> plan);
}